package com.woniuxy.business.service.impl;

import com.woniuxy.business.mapper.BankMapper;
import com.woniuxy.business.service.BankService;
import com.woniuxy.entity.Bank;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

@Service
public class BankServiceImpl implements BankService {
    @Resource
    private BankMapper bankMapper;

    @Override
    public void addBank(Bank bank) {
        bankMapper.insertBank(bank);
    }

    @Override
    public Bank getBankById(int id) {
        return bankMapper.selectById(id);
    }
}
